//
//  UITextField+Extension.swift
//  MyNews
//
//  Created by DF-Mac on 16/12/5.
//  Copyright © 2016年 DF-Mac. All rights reserved.
//

//let  textField1=UITextField(frame: CGRect(x: 0, y: 100, width: 100, height: 30))
//textField1.borderStyle = .roundedRect
//textField1.text="0"

import UIKit
extension UITextField{
    convenience init(frame:CGRect,placeholder:String,fontSize:CGFloat){
        
       self.init()
        
        self.frame=frame
        self.placeholder=placeholder
        self.font?.withSize(fontSize)
        self.borderStyle = .roundedRect
    }
    
}
